﻿using Dogshow.Linq2SQLRepository;
using DogshowRepository;
using Ninject.Modules;

namespace Dogshow.Web.Bootstrapper
{
    public class DogshowNinjectModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IRaseRepository>().To<RaseRepository>();
            Bind<ITituleRepository>().To<TituleRepository>();
            Bind<IPsiRepository>().To<PsiRepository>();
            Bind<IKinoloziRepository>().To<KinoloziRepository>();
            Bind<IDatabaseInitializer>().To<DbInit>();
            //Bind<IDatabaseInitializer>().To<EmptyDbInit>();
            Bind<IKinoloskaDrustvaRepository>().To<KinoloskaDrustvaRepository>();
            Bind<IMestaRepository>().To<MestaRepository>();
            Bind<IIzlozbeRepository>().To<IzlozbeRepository>();
            Bind<IKorisniciRepository>().To<KorisniciRepository>();
        }
    }
}